import Vue from 'vue'
import App from './App.vue'
// 引入路由
import VueRouter from 'vue-router'
// 导入路由模板
import router from './router'
// 引入element-ui 
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import store from './store'	// 引入store

// 引入 echarts
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts


Vue.use(VueRouter)
Vue.use(ElementUI);

Vue.config.productionTip = false



new Vue({
  render: h => h(App),
  // 路由配置
  router,
  store,  // 配置项添加store
  // 安装全局事件总线 
  beforeCreate() {
    Vue.prototype.$bus = this
  },
}).$mount('#app')
